﻿using System;

namespace Donal.Xms.Model
{
    /// <summary>
    /// OAuth授权用户信息
    /// </summary>
    [Serializable]
    public partial class user_oauth
    {
        public user_oauth()
        { }
        #region Model
        private int _id;
        private int _user_id = 0;
        private string _user_name = string.Empty;
        private string _oauth_name  = string.Empty;
        private string _oauth_access_token = string.Empty;
        private string _oauth_openid = string.Empty;
        private DateTime _add_time = DateTime.Now;

        private string _login_tags = string.Empty;
        private string _nick = string.Empty;
        private string _sex = string.Empty;
        private string _birthday = string.Empty;
        private string _avatar = string.Empty;

        /// <summary>
        /// 自增ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int user_id
        {
            set { _user_id = value; }
            get { return _user_id; }
        }
        /// <summary>
        /// 用户名
        /// </summary>
        public string user_name
        {
            set { _user_name = value; }
            get { return _user_name; }
        }
        /// <summary>
        /// 开放平台名称
        /// </summary>
        public string oauth_name
        {
            set { _oauth_name = value; }
            get { return _oauth_name; }
        }
        /// <summary>
        /// access_token
        /// </summary>
        public string oauth_access_token
        {
            set { _oauth_access_token = value; }
            get { return _oauth_access_token; }
        }
        /// <summary>
        /// 授权key
        /// </summary>
        public string oauth_openid
        {
            set { _oauth_openid = value; }
            get { return _oauth_openid; }
        }
        /// <summary>
        /// 授权时间
        /// </summary>
        public DateTime add_time
        {
            set { _add_time = value; }
            get { return _add_time; }
        }

        /// <summary>
        /// 登录标识
        /// </summary>
        public string login_tags
        {
            set { _login_tags = value; }
            get { return _login_tags; }
        }

        /// <summary>
        /// 昵称
        /// </summary>
        public string nick
        {
            set { _nick = value; }
            get { return _nick; }
        }

        /// <summary>
        /// 性别
        /// </summary>
        public string sex
        {
            set { _sex = value; }
            get { return _sex; }
        }

        /// <summary>
        /// 生日
        /// </summary>
        public string birthday
        {
            set { _birthday = value; }
            get { return _birthday; }
        }

        /// <summary>
        /// 头像
        /// </summary>
        public string avatar
        {
            set { _avatar = value; }
            get { return _avatar; }
        }
        #endregion
    }
}